import {Http} from '../utils/http'
const mixins = require('../common/mixins/model')

class Notify {
    static async getNotifyList(page, listLength, size = 10) {
        const res = await Http.request({
            url: `home/notice/list?page=${page}&size=${size}`,
            method: 'GET'
        })
        res.data.hasMore = mixins.judgeHasMore(res.data.total, listLength, size)
        return res.data
    }
}

export {Notify}
